package com.bdqn.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdqn.pojo.Right;
import com.bdqn.pojo.Role;
import com.bdqn.pojo.User;
import org.springframework.data.domain.Pageable;
import java.util.List;
import java.util.Map;

public interface RoleService {
   List<Role> list();
   //角色增删改查
   public List<Role> findAllRoles();
   public Role saveRole(Role role);//新增或者修改
   public void deleteRoleById(Long roleId);
   public Role getRole(Long roleId);
   //按名称模糊查询并分页
   public Page<Role> findRolesByRoleNameLike(String roleName, Pageable pageable);
   //系统未提供权限操作的模块，权限业务和角色相关，所以统一设计在RoleService中
   public List<Right> findAllRights();
   public List<Right> findRightsByRole(Role role);
   public Role findRoleByUsers(User user);
   public void reloadFilterChainDefinitions();
   public Map<String ,String> loadFilterChainDefinitions();
}